/**
 * 
 */
package com.game.plaza.response;

import com.game.codec.BaseResponse;
import com.game.common.GlobalCmd;

/**
 * @author lushouzhi
 *
 */
public class PlayerEnterTableResponse extends BaseResponse{
	private byte chairId;
	private byte isSuc;
	private String error;
	@Override
	protected byte getCommondId() {
		return GlobalCmd.s_player_enter_table;
	}

	@Override
	protected void getBody() {
		builder.setByte(chairId);
		builder.setByte(isSuc);
		if(isSuc==RESP_FAIL){
			builder.setString(error);
		}
	}

	public void setIsSuc(byte isSuc) {
		this.isSuc = isSuc;
	}

	public void setChairId(byte chairId) {
		this.chairId = chairId;
	}

	public void setError(String error) {
		this.error = error;
	}
}
